"""6.3 手动异常raise语句"""

def divide(a,b):
    if b==0:
        #手动抛出异常
        raise ZeroDivisionError("除数不能为0")
    return a/b
try:
    result=divide(10,0)
    print("结果：",result)
except Exception as e:
    print("===捕获到异常=====")
else:
    print("程序正常结束")
